if messages.errors
  .alert.alert-danger.alert-dismissible(role='alert')
    each error in messages.errors
      div= error.msg
    button.btn-close(type='button', data-bs-dismiss='alert', aria-label='Close')

if messages.info
  .alert.alert-primary.alert-dismissible(role='alert')
    each info in messages.info
      div= info.msg
    button.btn-close(type='button', data-bs-dismiss='alert', aria-label='Close')

if messages.success
  .alert.alert-success.alert-dismissible(role='alert')
    each success in messages.success
      div= success.msg
    button.btn-close(type='button', data-bs-dismiss='alert', aria-label='Close')
